<template>
	<view class="popup_tell">
		<view class="close" @click="$emit('close')">
			<image :src="`${baseImageUrl}/common/close1.png`"></image>
		</view>
		<view class="title">{{title}}</view>
		<view class="btn_view">
			<view class="item" @click="go_app">{{tell_advert}}</view>
			<view class="item" @click="$emit('submit')">{{tell_text}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			type: {
				type: [String, Number],
				default: ""
			},
			title: {
				type: String,
				default: ""
			},
			tell_advert: {
				type: String,
				default: ""
			},
			tell_text: {
				type: String,
				default: ""
			}
		},
		methods: {
			go_app() {
				uni.$u.throttle(() => {
					this.navigate(this.type)
				}, 3000);
			}
		}
	}
</script>

<style scoped lang="scss">
	.popup_tell {
		width: 688rpx;
		height: 278rpx;
		padding: 54rpx 0rpx 30rpx;
		box-sizing: border-box;
		// background: url(#{$baseImageUrl}/add/1214_2.png) no-repeat;
		background: url(@/static/images/add/1214_2.png) no-repeat;
		background-size: 100% 100%;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: center;
		position: relative;

		.close {
			width: 122rpx;
			height: 122rpx;
			position: absolute;
			right: 0rpx;
			top: 0rpx;
			transform: translate(30rpx, -50rpx);
			z-index: 2;

			image {
				width: 100%;
				height: 100%;
			}
		}

		.title {
			color: #494338;
			font-size: 50rpx;
			font-weight: 400;
			font-family: LiSu;
		}

		.btn_view {
			width: 100%;
			display: flex;
			justify-content: center;

			.item {
				width: 242rpx;
				height: 74rpx;
				line-height: 74rpx;
				text-align: center;
				color: #FFFFFF;
				font-size: 30rpx;
				font-weight: 400;
				font-family: SimSun;
				margin: 0 30rpx;
				// background: url(#{$baseImageUrl}/add/1214_1.png) no-repeat;
				background: url(@/static/images/add/1214_1.png) no-repeat;
				background-size: 100% 100%;
			}
		}
	}
</style>